// 1.定义默认数据
let initialState = {
  menuData: []
}

// 2.Reducer
const Reducer = (state = initialState, action) => {
  switch (action.type) {
    case 'SET_MENUDATA':
      return { ...state, menuData: action.value }
    default:
      return state
  }
}
// 3.导出
export default Reducer;
